import axios from "axios";
export async function getinfo() {
    let res = await axios.request({
        method: "get",
        url: "/api/user/getinfo",
        headers: {
            Authorization: "Bearer " + localStorage.getItem("token"),
        },
    });
    return res;
}